dojo.provide("dojoscratch.LineCommand");

dojo.require("dojoscratch.AbstractCommand");

dojo.declare("dojoscratch.LineCommand", dojoscratch.AbstractCommand, {
	_command: function() {
		var line = {
			"type" : "line",
			"x1" : this._x1,
			"y1" : this._y1,
			"x2" : this._x2,
			"y2" : this._y2
		};
		var fill = {
			colors : {
				color: "red"
			}
		};
		var stroke = {
				colors : "black",
				width: 2
		};
		
		this._createScratch(line, fill, stroke);
	}
});